#ifndef LIBACTIVATION_H
#define LIBACTIVATION_H

#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <glib-object.h>
#include <glib.h>
#include <dbus/dbus-glib.h>
#include <QString>
#include <QDebug>
#include <QStringList>
#include "libactivation_global.h"


#ifdef __cplusplus
extern "C" {
#endif

char* activation_get_harddisk_id();

char* activation_get_system_uuid();

char* activation_get_interface_mac();

char* activation_new_register_number(char *serial);

int activation_status_code();

char* activation_get_serial_number();

#ifdef __cplusplus
}
#endif


class LIBACTIVATIONSHARED_EXPORT Libactivation
{

public:
    Libactivation();

    DBusGProxy *proxy = NULL;


    //获取硬盘序列号
    QString get_harddisk_id();

    //获取UUID
    QString get_system_uuid();

    //获取网卡Mac
    QString get_interface_mac();

    //获取注册码
    QString new_register_number(gchar *serial);

    //获取激活状态
    int status_code();
    int trial_status();

    //获取序列号
    QString get_serial_number();

};

#endif // LIBACTIVATION_H
